package org.thanos.demo.vo.req;

import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.thanos.demo.vo.DataPacket;


@EqualsAndHashCode(callSuper = true)
@Data
public class AuthMsg extends DataPacket {

    private String authCode;//鉴权码

    public AuthMsg(ByteBuf byteBuf) {
        super(byteBuf);
    }

    @Override
    public void parseBody() {
        this.setAuthCode(readString(this.payload.readableBytes()));
    }
}
